﻿package makeeasier.utils {

	public final class LogSystem {
		// ######################################
		// # Message Types	:					#
		// # System			: SYSTEM		1	#
		// # Information	: INFO			2	#
		// # Error			: ERROR			3	#
		// # Command		: COMMAND		4	#
		// # Client			: CLIENT		5	#
		// ######################################
		// USE: LogSystem.log(LogSystem.ERROR, "asdfasdf");
		
		public static const NULL:String = "NULL";
		public static const SYSTEM:String = "SYSTEM";
		public static const INFO:String = "INFO";
		public static const ERROR:String = "ERROR";
		public static const COMMAND:String = "COMMAND";
		public static const CLIENT:String = "CLIENT";
		
		public function LogSystem(){
			
		}
		
		public static function log(t:String, m:String):void{
			var date:Date = new Date();
			var df = date.fullYear + "/" + date.month + "/" + date.date + " " + date.hours + ":" + date.minutes + ":" + date.seconds + "." + date.milliseconds;
			trace("["+df+"] "+ t + ": " + m.toString());
		}
		
	}

}